﻿@model IEnumerable<SoftHotel.Models.DatoServicio>

@{
    ViewBag.Title = "Detalle";
}

<h2>Detalle de Servicio</h2>
<br />
@using (Html.BeginForm("AgregarDato", "Servicio",  FormMethod.Get))
{<table id="MainContent_Table3" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="0">
	<tbody><tr><td>
    <input type="submit" name="nuevo" value="Nuevo" />
     </td></tr></tbody></table>
}
<br />
<table  width="100%" rules="all" border="1" style="border-color: Black; width: 900px; margin-bottom: 0px;">
    <tr align="center">
        <th>
            Descripción
        </th>
        <th width="60px"></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.descripcion)
        </td>
        <td>
        <div  style="float:left">
            @using (Html.BeginForm("DatoEditar", "Servicio", new { id = item.idDato }, FormMethod.Get))
            {  <input type="image"  alt="0" title="Editar"  src="/Content/Images/edit.jpg" />
            }
        </div><div  style="float:right">
            @using (Html.BeginForm("Eliminar", "Servicio", new { id = item.idDato }, FormMethod.Get))
            {  <input type="image"  alt="0" title="Eliminar" src="/Content/Images/delete.jpg" />
            }
        </div>        
        </td>
    </tr>
}

</table>
